//
//  BCMonetaryUnitView.h
//  GSBlockChain
//
//  Created by guoshikeji_a on 2018/11/16.
//  Copyright © 2018年 guoshikeji. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol BCMonetaryUnitViewDelegate <NSObject>

- (void)monetaryUnitViewDidSelectMonetaryUnit:(NSString *)monetaryUnit;

@end

@interface BCMonetaryUnitView : UIView

/**
 指定初始化方法 箭头在左边还是右边 !left=right
 */
- (instancetype)initWithArrowLeft:(BOOL)left;

/**
 * BCMonetaryUnitViewDelegate
 */
@property (nonatomic, weak) id <BCMonetaryUnitViewDelegate> delegate;

- (void)setArrowCenterY:(CGFloat)arrowCenterY maxWidth:(CGFloat)width;

- (void)setMonetaryUnitViewSource:(NSArray <NSString *> *)source;

/**
 提前计算出大小 根据需要显示source
 */
+ (CGSize)monetaryUnitSize:(NSArray <NSString *> *)source;

@end

